<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
	    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
	    <title>微信支付</title>
	    <script type="text/javascript" src="../../js/mui.min.js"></script> 
	    <script type="text/javascript" src="../../js/common.js"></script>
	    <link rel="stylesheet" type="text/css" href="../../css/mui.min.css"/>
	    <link rel="stylesheet" href="../../css/own.css" />
	    <link rel="stylesheet" href="../../css/recharge.css" />
	    <script src="../../js/jquery-1.11.3.js"></script>
	    <style>
	    	p{
	    		margin: 0px;
	    		width: 100%;
	    		padding:0px 15px;
	    	}
	    	.titleList{
	    		font-size: 16px;;
	    		line-height: 40px;
	    		color:#000000;
	    	}
	    	.mui-table-view{
	    		font-size: 13px;
	    	}
	    </style>
	</head>
	<body>
		<header class="mui-bar mui-bar-nav own-topbg">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left" id="back"><i>返回</i></a>
			<h1 class="mui-title">微信转账</h1>		
			<a href="javascript:void(0)" class="top-tel" id="telBtn">客服热线</a>
		</header>
		<div class="mui-content">
				
		</div>
		<script>
			mui.init();
			mui.plusReady(function(){
				tzdr.init.initHearListener();
				var wv = plus.webview.currentWebview();
				var paymentMoney = $("#paymentMoney").text();
				mui.app_request('/user/pay/FCPay', {
					"gopayWay": "wechat",
					"goPaymoney":wv.money
				}, function(result) {
					if(result.code ==1) {
						var data = result.data;
						plus.nativeUI.showWaiting( "正在跳转..." );
						setTimeout(function(){
							plus.nativeUI.closeWaiting();
						},2000);
						var w = plus.webview.create("fcpay.html","fcpay",{top:"45px"},{data:result});
						w.show();
						return;
					}
				}, function(result) {
					if(result.code == 2) {
						mui.toast("支付宝账号已经存在！");
						return;
					} else if(result.code == 3) {
						mui.toast("支付宝账号不能为空！");
						return;
					} else {
						mui.toast("系统繁忙，请稍后再试！");
						return;
					}
				})
			})
		</script>
	</body>
</html>
